package com.zhouchb.blog.service;

import com.zhouchb.blog.bean.Tag;
import com.zhouchb.blog.bean.Type;

import java.util.List;

/**
 * @Author Zhouchb
 * @Create 2021-09-2021/9/5 :22:31
 * @Description
 */
public interface TagsService {
    //添加
    int saveTagesService(Tag tag);

    //查询
    Tag getTagByIdService(Long id);

    List<Tag> listTagService();

    Tag getTagByNameService(String name);
    public List<Tag> listOrderCount(Integer size);
    public List<Tag> listTagbyBlogIdService(Long blogId);
    public List<Tag> listTagAndCountService();
    //更新
    int updateTagService(Long id, Tag tag);

    int delTagService(Long id);
}
